<%@ taglib prefix="s" uri="/struts-tags"%>
<p>Books</p>
<s:if test="userAccounts.size > 0">
 <table>
  <s:iterator value="userAccounts">
   <tr id="row_<s:property value="id"/>">
    <td>
     <s:property value="userid" />
    </td>
    <td>
     <s:property value="username" />
    </td>
    <td>
     <s:property value="groupname"/>
    </td>
    <td>
     <s:url id="removeUrl" action="remove">
      <s:param name="id" value="id" />
     </s:url>
     <s:a href="%{removeUrl}" theme="ajax" targets="userAccounts">Remove</s:a>
     <s:a id="a_%{id}" theme="ajax" notifyTopics="/edit">Edit</s:a>
    </td>
   </tr>
  </s:iterator>
 </table>
</s:if>